package project1.service;

import project1.dao.OrderDao;
import project1.dao.OrderDaoImpl;
import project1.model.bo.PageOrderBO;
import project1.view.PageOrderInfoVO;
import project1.view.PageOrdersVO;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao = new OrderDaoImpl();
    /**
     * 根据传入的不同参数,执行不同的查询返回对应的结果
     * @param orderBO
     * @return
     */
    @Override
    public List<PageOrdersVO> ordersByPage(PageOrderBO orderBO) {
        int totalCounts = orderDao.getTotalCounts(orderBO);
        //查询当前分页的结果page1 1-5 page2 6-10 page3 11-15
        List<PageOrderInfoVO> orderInfoVOS = orderDao.ordersByPage(orderBO);
        return null;
    }
}
